package com.lfy.kcat.user.feign;


import org.dromara.common.core.domain.R;

import org.dromara.common.core.dto.PageReqDTO;
import org.dromara.common.core.dto.home.HomeDramaEpisodesDTO;
import org.dromara.common.core.dto.home.HomeDramaInfoDTO;
import org.dromara.common.core.dto.home.HomeFeaturedDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("content-service")
public interface ContentServiceFeignClient {

    /**
     * @param pageReqVo
     * @return
     */
    @PostMapping("/home/featured/infoflow")
    R<HomeFeaturedDTO> feature(@RequestBody PageReqDTO pageReqVo);

    @GetMapping("/dramas/{dramaId}/episodes/all")
    R<HomeDramaEpisodesDTO> dramaEpisodesInfo(@PathVariable("dramaId") Long dramaId);


    @GetMapping("/dramas/{dramaId}/info")
    R<HomeDramaInfoDTO> dramaInfo(@PathVariable("dramaId") Long dramaId);
}
